let Mian = import("@/views/Mian");

export default [
  {
    path: "operation", //运营管理
    name: "operation",
    meta: {
      title: "运营管理",
      icon: "icon-shuzhuangtu",
    },
    component: Mian,
    children: [
      {
        path: "order", //订单管理
        name: "order",
        meta: {
          title: "订单管理",
        },
        component: () => import("@/views/operation/order"),
      },
      {
        path: "commentary", //评论管理
        name: "commentary",
        meta: {
          title: "评论管理",
        },
        component: () => import("@/views/operation/commentary"),
      },
      {
        path: "freight", //运费管理
        name: "freight ",
        meta: {
          title: "运费管理",
        },
        component: () => import("@/views/operation/freight"),
      },
    ],
  },
  {
    path: "commodities", //商品管理
    name: "commodities",
    meta: {
      title: "商品管理",
      icon: "icon-gouwuche",
    },
    component: Mian,
    children: [
      {
        path: "something",
        name: "something",
        component: () => import("@/views/commodities/something"),
        meta: {
          title: "商品列表",
        },
      },
      {
        path: "group",
        name: "group",
        component: () => import("@/views/commodities/group"),
        meta: {
          title: "团购商品",
        },
      },

      {
        path: "category",
        name: "category",
        component: () => import("@/views/commodities/category"),
        meta: {
          parent: "/home/commodities/comething",
          title: "类目管理",
        },
      },
      {
        path: "commod",
        name: "commod",
        component: () => import("@/views/commodities/commoditiesadd"),
        meta: {
          hidden: true,
          parent: "/home/commodities/commodities",
          title: "添加页面",
          keepAlive: true,
        },
      },
      {
        path: "editor/:id",
        props: true,
        name: "editor",
        component: () => import("@/views/commodities/editor"),
        meta: {
          // parent:"/home/commodities/commodities",
          hidden: true,
          title: "编辑页面",
        },
      },
    ],
  },
  {
    path: "popularizes", //推广管理
    name: "popularizes",
    meta: {
      title: "推广管理",
      icon: "icon-tuiguangtongji",
    },
    component: Mian,
    children: [
      {
        path: "advertising",
        name: "advertising",
        component: () => import("@/views/popularizes/advertising"),
        meta: {
          title: "广告管理",
        },
      },
      {
        path: "coupons",
        name: "coupons",
        component: () => import("@/views/popularizes/coupons"),
        meta: {
          title: "优惠券管理",
        },
      },
    ],
  },
  {
    path: "usersystem", //用户管理
    name: "usersystem",
    meta: {
      title: "用户管理",
      icon: "icon-yonghu",
    },
    component: Mian,
    children: [
      {
        path: "member",
        name: "member",
        component: () => import("@/views/usersystem/member"),
        meta: {
          title: "会员管理",
          icon: "",
        },
      },
      {
        path: "address",
        name: "address",
        component: () => import("@/views/usersystem/address"),
        meta: {
          title: "地址管理",
        },
      },
    ],
  },
  {
    path: "system", //系统管理
    name: "system",
    meta: {
      title: "系统管理",
      icon: "icon-xitong",
    },
    component: Mian,
    children: [
      {
        path: "system",
        name: "system",
        component: () => import("@/views/system/systems"),
        meta: {
          title: "系统配置",
        },
      },
      {
        path: "caretaker",
        name: "caretaker",
        component: () => import("@/views/system/caretaker"),
        meta: {
          title: "管理员",
        },
      },
      {
        path: "logbook",
        name: "logbook",
        component: () => import("@/views/system/logbook"),
        meta: {
          title: "操作日志",
        },
      },
      {
        path: "roles",
        name: "roles",
        component: () => import("@/views/system/roles"),
        meta: {
          title: "角色管理",
        },
      },
    ],
  },
];
